package com.open.capacity.user.service;

import com.open.capacity.common.model.Dictionary;
import com.open.capacity.common.model.SysUser;
import com.open.capacity.common.web.PageResult;
import com.open.capacity.common.web.Result;

import java.util.Map;

public interface DictionaryService {
    /**
     * 字典列表
     * @param params
     * @return
     */
    PageResult<Dictionary> getSelectDictionaries(Map<String, Object> params);

    /**
     * 字典添加
     * @param dictionary
     * @return
     */
    Result addDictionary(Dictionary dictionary);

    /**
     * 状态变更
     * @param params
     * @return
     */
    Result updateDictionaryEnabled(Map<String, Object> params);

    /**
     * 修改字典类型
     * @param dictionary
     * @return
     */
    Result updateDictionary(Dictionary dictionary);
}
